arr = [36, 27, 20, 60, 55, 7, 28, 36, 52, 44, 16]
arr1 = [7, 16, 20, 27, 28, 36, 36, 44, 52, 55, 60]
def bubble_sort(arr):
    print(f'初始{arr}')
    for i in range(len(arr)-1, 0, -1):
        flage = True
        for j in range(0, i, 1):
            if arr[j] > arr[j + 1]:
                flage =False
                a = arr[j + 1]
                arr[j + 1] = arr[j]
                arr[j] = a
        print(arr)
        if flage:
            break

    print(f'最终{arr}')

bubble_sort(arr1)